package com.yami.shop.nftaccount.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@TableName("tz_nft_asset_trends")
public class NftAssetTrends {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long settleId;

    private String denomId;

    private String tokenId;

    private String fromUserId;

    private String fromMnemonic;

    private String fromAddress;

    private String toUserId;

    private String toMnemonic;

    private String toAddress;

    private Double price;

    /**
     *  交易类型（TradeType） 1：下单买入 2：空投 3：转赠 4：合成减少 5：合成增加 6：寄售 7：寄售取消 8：寄售买入 9：转出 10：转入 11：兑换
     */
    private Integer type;

    /**
     * 关联的外部id
     */
    private String outId;

    /**
     * 对账状态 0待对账 1对账正确 2对账异常 3异常交易
     */
    private Integer status;

    private String errorMsg;

    private Date createTime;

    private Date updateTime;

    /**
     * 产品id
     */
    private Long prodId;

    private String chainCode;

    /**
     * 渠道CODE
     */
    @TableField(exist = false)
    private String channelCode;

}
